package nciae.db.service;

import com.baomidou.mybatisplus.extension.service.IService;
import nciae.db.common.CommonResult;
import nciae.db.pojo.dto.apiGetHomeWorkDetailDTO;
import nciae.db.pojo.entity.Homework;
import nciae.db.pojo.entity.Project;
import nciae.db.pojo.vo.ApiGetHomeWorkDetailVO;
import nciae.db.pojo.vo.ApiGetHomeWorkVO;
import nciae.db.pojo.vo.HomeworkVo;

import java.sql.Date;
import java.util.List;

public interface HomeworkService extends IService<Homework> {
    public CommonResult<List<HomeworkVo>> search(Integer page , Integer size,String project , String classs, String homeworkType,Integer chargerId);
    public HomeworkVo getHomework(Integer id);
    public CommonResult<Homework> homeworkSave(HomeworkVo homeworkVo);

    public CommonResult<List<ApiGetHomeWorkVO>> apiGetHomeWork( Long projectId, Long classId , Long studentId);

    public CommonResult<Boolean> apiSubmitHomeWorkNoFiles(Integer homeworkId, Integer studentId, String content);

    public CommonResult<ApiGetHomeWorkDetailVO> apiGetHomeWorkDetail(apiGetHomeWorkDetailDTO apiGetHomeWorkDetailDTO);

    public CommonResult<Boolean> deleteHomeworkById(List<Integer> ids);

}
